package com.mrdeer.merchant.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/9 0009 16:46
 */
@Data
@TableName("merchant")
@ApiModel(value = "MerchantDTO", description = "商户信息")
public class Merchant implements Serializable {
    private static final long serialVersionUID = 6864180823244451651L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ID_WORKER)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 商户名称
     */
    @TableField("MERCHANT_NAME")
    @ApiModelProperty(value = "商户名称")
    private String merchantName;

    /**
     * 商户编号
     */
    @TableField("MERCHANT_NO")
    @ApiModelProperty(value = "商户编号")
    private String merchantNo;

    /**
     * 商户地址
     */
    @TableField("MERCHANT_ADDRESS")
    @ApiModelProperty(value = "商户地址")
    private String merchantAddress;
    /**
     * 商户类型
     */
    @TableField("MERCHANT_TYPE")
    @ApiModelProperty(value = "商户类型")
    private String merchantType;
    /**
     * 营业执照(企业证明)
     */
    @TableField("BUSINESS_LICENSES_IMG")
    @ApiModelProperty(value = "营业执照(企业证明)")
    private String businessLicensesImg;

    @TableField("ID_CARD_FRONT_IMG")
    @ApiModelProperty(value = "法人身份证正面照片")
    private String idCardFrontImg;

    @TableField("ID_CARD_AFTER_IMG")
    @ApiModelProperty(value = "法人身份证反面照片")
    private String idCardAfterImg;

    @TableField("USERNAME")
    @ApiModelProperty(value = "联系人姓名")
    private String username;

    @TableField("MOBILE")
    @ApiModelProperty(value = "联系人手机号(关联统一账号)")
    private String mobile;

    @TableField("CONTACTSADDRESS")
    @ApiModelProperty(value = "联系人地址")
    private String contactsAddress;

    @TableField("AUDITSTATUS")
    @ApiModelProperty(value = "审核状态 0-未申请 1-已申请审核 2-审核通过 3-审核拒绝")
    private String auditStatus;

    @TableField("TENANT_ID")
    @ApiModelProperty(value = "租户ID，关联统一用户")
    private Long tenantId;
}
